package com.goldcn.config;


import com.goldcn.common.SystemProperties;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2016/11/24.
 */

public class ProConstants {



    public static String ESURL;
    public static String BASE;
    public static String PAYMENT;
    public static String SMS;
    public static String POINT;
    public static String QUARTZ;
    public static String BANK;
    public static String BANKOPSSERVICE;
    public static String COUPON;
    public static String GOODS;


    static {
        ESURL = SystemProperties.getProperties().getProperty("service.esurl");
        BASE = SystemProperties.getProperties().getProperty("service.base");
        PAYMENT = SystemProperties.getProperties().getProperty("service.payment");
        SMS = SystemProperties.getProperties().getProperty("service.mobile");
        POINT = SystemProperties.getProperties().getProperty("service.point");
        QUARTZ = SystemProperties.getProperties().getProperty("service.job");
        BANK = SystemProperties.getProperties().getProperty("service.bank");
        COUPON = SystemProperties.getProperties().getProperty("service.coupon");
        BANKOPSSERVICE = SystemProperties.getProperties().getProperty("service.bankOpsService");
        GOODS = SystemProperties.getProperties().getProperty("service.goods");
    }

    public static final String salt = "abcdefghijklmn"; //登录注册/价格盐值定义
    public static final String paySalt = "0CX28vdBQeec9nb9txtEnw"; //支付盐值

    public static final String setUserGolden = POINT + "/golden"; //生成金豆
    public static final String setUseGolden = POINT + "/golden/userPointV2"; //抵扣金豆
    public static final String setUseGoldenV2 = POINT + "/golden/userPointV2"; //抵扣金豆
    public static final String setCommision = POINT + "/golden/commision"; //生成佣金
    public static final String getPointPayNO = POINT + "/golden/detail/payno/"; //获取金豆运保费支付
    public static final String getUserPointInfo = POINT + "/golden/cornInfo/"; //获取用户金豆信息
    public static final String getPointOrder = POINT + "/golden/withdraw/"; //获取金豆运保费支付
    public static final String updatePointPrepay = POINT + "/golden/detail"; //金豆运保费预支付
    public static final String orderPresentPoint = POINT + "/golden/orderPresentPoint";//会员下单10件赠送
    public static final String updatePointPay = POINT + "/golden/state/APPLY/"; //金豆运保费支付回调 /{id}/{userid}
    public static final String getPointAuditCount = POINT + "/pendingAudit"; //获取待审核数量/{companyID}

    public static final String getPointAuditCount2 = POINT + "RPT/pendingAudit"; //获取待审核数量/{companyID}

    public static final String freightCallback = POINT + "/freightCallback/"; //运保费回调

    public static final String returnPoint = POINT + "/returnPoint/"; //获取待审核数量/{companyID}


    public static final String getReturnPoint = POINT + "/golden/returnPoint";//订单失效返回金豆


    public static final String getPointRealPrice = POINT + "/pouch/goldPrice";//今日金价(实时国际金价),数据来源金中国平台

    public static final String getUserByID = BASE + "/userinfo/";
    public static final String getUserInfoForOrder = BASE + "/userinfo/userInfoForOrder/";
    public static final String getAddress = BASE + "/userinfo/address/";
    public static final String getUserForOrderCount = BASE + "/count/userInfo/";
    public static final String getUserInfoStatCount = BASE + "/count/userInfoStatCount/";
    public static final String getUserQtyByList = BASE + "/count/oList/";
    public static final String getTraceability = BASE + "/userinfo/traceability/";
    public static final String getOrganizational = BASE + "/organizational/";
    public static final String getBranchList = BASE + "/organizational/branchList";
    public static final String getBranchListAllState = BASE + "/organizational/branchListAllState";
    public static final String getNameLevelByOID = BASE + "/organizational/bankNameLevel/";
    public static final String getMobileByUserIDList = BASE + "/userinfo/userIDList";
    public static final String getAdminIDByUserID = BASE + "/userinfo/adminID/";
    public static final String getEmpMembCountData = BASE + "/userinfo/selectEmpMembCountData/";
    public static final String getEmployeeActNum = BASE + "/userinfo/selectEmployeeActNum/";
    public static final String getBranchEmployee = BASE + "/userinfo/branchEmployee/";
    public static final String getBranchMember = BASE + "/userinfo/branchMember/";
    public static final String getMemberNumBySalesManager = BASE + "/userinfo/memberNumBySalesManager/";
    public static final String getOrderBorrowAuditLevel = BASE + "/config/orderBorrowAuditLevel/";
    public static final String getOrderBorrowSW = BASE + "/config/orderBorrow/";
    public static final String getCompany = BASE + "/company/simple/";
    public static final String getUserWithDeptByID = BASE + "/userinfo/dept/";
    public static final String isClazzSupply = BASE + "/config/isClazzSupply/";
    public static final String getTopOrganizational = BASE + "/organizational/getTopOrganizational/";


    public static final String getVipPriceSW = BASE + "/config/vipPrice/";
    public static final String getMaintenance = BASE + "/userinfo/getMaintenance/";
    public static final String getSaleManagerIdListByName = BASE + "/userinfo/selectByLikeName/";

    public static final String getWxPayURL = PAYMENT + "/payWxs/wxApp";
    public static final String getCCBPayURL = PAYMENT + "/ccbPay/prePay";
    public static final String getWxJsPayURL = PAYMENT + "/payWxs/wxJs";
    public static final String getCCBH5PayURL = PAYMENT + "/ccbPay/preJsPay";

    public static final String getSalesManagerOrgInfoBuyer = BASE + "/organizational/orderSalesManagerUser/";
    public static final String getOrgListByLikeName = BASE + "/organizational/selectOrgByLikeName/";
    public static final String getOrgPath = BASE + "/organizational/getPath/";

    public static final String getExtString = BANKOPSSERVICE + "/sysConfig/getValToStr";


    public static final String getAllCompany = BANKOPSSERVICE + "/sysConfig/selectAll_notPage";

    public static final String getTodayGoldPriceByNecklace = BASE + "/goldSeting/searchGoldPriceByNecklace/";

    public static final String selectPurchaserByUserID = BASE + "/purchaser/";


    //短信通知模版id added by pengzh 2017-3-17
    //短信通知:    付款成功 ,para:{order,date}
    public static final String SMS_TEMP_NOTICE_ORDER = "SMS_56525184";//"SMS_56015258";
    //短信通知:  成功发货,para:{expname,expno}
    public static final String SMS_TEMP_NOTICE_DELIVERY = "SMS_56075002";

    //报表导出
    public static final String EXPORT_ORDER_DETAIL = "ORDERDETAIL";//订单明细表

    public static final String EXPORT_COMMISSION_DETAIL = "BONUSDETAIL";//订单明细表

    //config
    public static final String getBizConfig = BASE + "/config/";

    public static final String getOfflinePermission = BASE + "/userinfo/userPermission/";

    public static final String countByGroupID = BASE + "/company/count/";


    public static final String es_goods_searchBar = ESURL + "/goods/searchBar";
    public static final String es_goods_searchBarCount = ESURL + "/goods/searchBarCount";


    public static final String TO_ERP_TITLE = "已对接ERP，请在ERP进行此操作";

    public static final String URL_WXPAY_APP = "/payWxs/wxApp";
    public static final String URL_WXPAY_JS = "/payWxs/wxJs";

    public static final String URL_WXPAY_APP_FORGZ = "/gz/pay/wxApp";
    public static final String URL_WXPAY_JS_FORGZ = "/gz/pay/wxJs";

    public static final String getToDoTipsAuthority = BASE + "/userinfo/userPermission/";

    public static final String otherFeeCode = "otherFee";//


    public static final String getUserGradeByUserID = BASE + "/userinfo/getUserGradeByUserID/";//查询代理商等级

    public static final String getStoreManagerByUserID = BASE + "/userinfo/getStoreManagerByUserID/";//查询店长ID;


    public static final String setUseGoldenList = POINT + "/golden/generatelList"; //生成金豆列表

    public static final String getNowGoldPrice = POINT + "/marketprice"; //


    public static final String deleteSubjectGoods = BASE + "/subject/goodsShelve/";

    public static final String postUserCoupon = COUPON + "/discount/useDiscount/";


    public static final String getUnlockCoupon = COUPON + "/discount/orderInvalid/";
    //商城销售手续费
    public static final BigDecimal FEE_MALL_SALE = BigDecimal.valueOf(0.006);


    public static final String getTransactionByIDList = BANK + "count/IDList/";  //根据oID或userID集合获取对应的交易额
    public static final String getGoodsPriceByIDList = BANK + "goods/priceList";  //根据goodsID集合获取对应的价格
    public static final String getGoodsPriceByIDListV2 = BANK + "goods/priceListv2/";  //根据goodsID集合获取对应的价格v2
    public static final String getGoodsPriceByIDListShop = BANK + "goods/priceListShop/";  //根据goodsID集合获取对应的价格v2
    public static final String operateOrderCount = BANK + "count";   //操作订单统计记录
    public static final String getUserTransaction = BANK + "order/userTransAction/"; //获取用户交易额
    public static final String operateClazzSubject = BANK + "clazz/subject/"; //操作分类专题

    public static final String moveDeptOrderToNewDept = BANK + "order/moveDeptOrderToNewDept/"; //获取部门单据数量

    public static final String countInitOder = BANK + "count/initOder/"; //初始化统计数据
    public static final String getGroup = BANK + "/purchaser/discount/"; //获取分组


    public static final String setManagerPoin = POINT + "/golden/addCorn/";  //理财经理注册送金豆



    public static final String getExtInt = BANKOPSSERVICE + "/sysConfig/getValToInt";

    public static final String getExtLong = BANKOPSSERVICE + "/sysConfig/getValToLong";


    public static final String addHxusers =    "/hxusers";//post
    public static final String getExtForApp = BANKOPSSERVICE + "/sysConfig/selectAllExtForApp";

    public static final Long SXPACCOUNTID = 796235203885682688L;



    public static final String getGoodsByGoodsIDs = BANK + "goods/selectByGoodsIDs";  //根据goodsID集合对应商品信息

    public static final String getGoodsByGoodsIDsShop = BANK + "goods/selectByGoodsIDsShop";  //根据goodsID集合对应商品信息

    public static final String WxSessionKeyOpenID = POINT + "/goldOrder/getWxSessionKeyOpenId"; //微信key和OpenID


    //公司套帐初始化公司ID
    public static final Long TEMP_CompanyID = 10000l;

}
